package cn.wolfcode.lww.service.impl;

import cn.wolfcode.lww.domain.Comment;
import cn.wolfcode.lww.mapper.CommentMapper;
import cn.wolfcode.lww.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CommentServiceImpl implements CommentService {
    @Autowired
    CommentMapper commentMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(Comment record) {
        int insert = commentMapper.insert(record);
        return insert;
    }

    @Override
    public Comment selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public List<Comment> selectAll() {
        return null;
    }

    @Override
    public int updateByPrimaryKey(Comment record) {
        return 0;
    }

    @Override
    public List<Comment> selectByArtIdAfter(String id)
    {
        List<Comment> comments = commentMapper.selectByArtIdAfter(id);
        return comments;
    }
}
